(#) androidx.lifecycle:lifecycle-runtime-testing

Name
:   Lifecycle Runtime Testing
Description
:   Testing utilities for 'lifecycle' artifact
License
:   [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
Vendor
:   Android Open Source Project
Identifier
:   androidx.lifecycle
Feedback
:   https://issuetracker.google.com/issues/new?component=413132
Min
:   Lint 8.0 and 8.1
Compiled
:   Lint 8.7+
Artifact
:   androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha08

(##) Included Issues

|Issue Id                                                              |Issue Description                                                                                      |
|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
|[TestLifecycleOwnerInCoroutine](TestLifecycleOwnerInCoroutine.md.html)|Use the suspending function setCurrentState(), rather than directly accessing the currentState property|

(##) Including

!!!
   This is not a built-in check. To include it, add the below dependency
   to your project.

```
// build.gradle.kts
implementation("androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha08")

// build.gradle
implementation 'androidx.lifecycle:lifecycle-runtime-testing:2.9.0-alpha08'

// build.gradle.kts with version catalogs:
implementation(libs.lifecycle.runtime.testing)

# libs.versions.toml
[versions]
lifecycle-runtime-testing = "2.9.0-alpha08"
[libraries]
# For clarity and text wrapping purposes the following declaration is
# shown split up across lines, but in TOML it needs to be on a single
# line (see https://github.com/toml-lang/toml/issues/516) so adjust
# when pasting into libs.versions.toml:
lifecycle-runtime-testing = {
    module = "androidx.lifecycle:lifecycle-runtime-testing",
    version.ref = "lifecycle-runtime-testing"
}
```

2.9.0-alpha08 is the version this documentation was generated from;
there may be newer versions available.

(##) Changes

* 2.7.0: First version includes TestLifecycleOwnerInCoroutine.

(##) Version Compatibility

There are multiple older versions available of this library:

| Version            | Date     | Issues | Compatible | Compiled      | Requires |
|-------------------:|----------|-------:|------------|--------------:|---------:|
|       2.9.0-alpha08|2024/12/11|       1|         Yes|           8.7+|8.0 and 8.1|
|       2.9.0-alpha07|2024/11/13|       1|         Yes|           8.7+|8.0 and 8.1|
|       2.9.0-alpha06|2024/10/30|       1|         Yes|           8.7+|8.0 and 8.1|
|       2.9.0-alpha05|2024/10/16|       1|         Yes|           8.7+|8.0 and 8.1|
|       2.9.0-alpha04|2024/10/02|       1|         Yes|           8.7+|8.0 and 8.1|
|       2.9.0-alpha03|2024/09/18|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|       2.9.0-alpha02|2024/09/04|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|       2.9.0-alpha01|2024/08/07|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               2.8.3|2024/07/01|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               2.8.2|2024/06/12|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               2.8.1|2024/05/29|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               2.8.0|2024/05/14|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|
|               2.7.0|2024/01/10|       1|         Yes|    8.0 and 8.1|8.0 and 8.1|

<!-- Markdeep: --><style class="fallback">body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src="markdeep.min.js" charset="utf-8"></script><script src="https://morgan3d.github.io/markdeep/latest/markdeep.min.js" charset="utf-8"></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility="visible")</script>